﻿@using FCZLM.Core.Models
@using Microsoft.AspNetCore.Http
@{

     var prolist = ViewBag.Product as List<Products>;
    var procategorylist = ViewBag.ProductCategory as List<ProductCategorys>;
    var prourllist = ViewBag.ProductUrl as List<ProductUrls>;
    var lunbotu = ViewBag.LunBoTu as List<LunBoTu>;
    var tuijian = ViewBag.ProductWeight as List<ProductWeight>;
}

<script type="text/javascript">
$(function(){
	$("#kinMaxShow").kinMaxShow();
});
</script>
@*@if (@Context.Session.GetString(key: "n") == null)
{
    
}*@
<div class="pnt">
   <div class="pntLeft">
    <h2 class="Title">所有商品分类</h2>
    <ul class="InPorNav">
      @foreach (var item in procategorylist)
              {
                  if(@item.Id<1006){
                  <li><a href="/product2/index">@item.Name</a></li>
                  }
              }
    </ul><!--InPorNav/-->
   </div><!--pntLeft/-->
   <div class="pntRight">
    <ul class="nav">
     <li class="navCur"><a href="/home/index">商城首页</a></li>
     <li><a href="/Product/index">商品中心</a></li>
     <li><a href="/news/index">新闻中心</a></li>
     <li>
          @if(@Context.Session.GetString(key:"user")==null){
							 <a href="/login/index">用户中心</a>
						}else{
							
							 <a href="/user/index">用户中心</a>
							
						}          
              
         </li>
     <li><a href="/contact/index">联系我们</a></li>
    </ul><!--nav/-->
    <div class="banner">
     <div id="kinMaxShow">
      
       @foreach (var item in lunbotu)
        {
          <div>
            <a href="#"> <img src="@item.PicUrl" width="198" height="290" /></a>
            </div> 	
        }
     	
         
     </div><!--kinMaxShow/-->
    </div><!--banner/-->
   </div><!--pntRight/-->
   <div class="clears"></div>
  </div><!--pnt/-->
  <div class="rdPro">
   <div class="rdLeft">
    <ul class="rdList">
     <li>推荐产品</li>
    
    
    </ul><!--rdList/-->
    <div class="rdProBox">
    
         @foreach (var item in tuijian)
        { <dl>
             <dt><a href="/proinfo/index/@item.ProductUrl"><img src="@item.ProductWeight1" width="132" height="129" /></a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
           </dl>
        }
     

    
     <div class="clears"></div>
    </div><!--rdPro/-->
   </div><!--rdLeft/-->
  @*第一个*@
   <div class="rdRight">
    @foreach (var item in prourllist)
        {
            if(@item.Id==17){
                 <img src="@item.PicUrl" width="198" height="290" />
            }
           
        }
   </div><!--rdRight/-->
   <div class="clears"></div>
  </div><!--rdPro/-->
  <div class="hengfu">
    @foreach (var item in prourllist)
        {
            if(@item.Id==55){
                 <img src="@item.PicUrl" width="978"  height="97" />
            }
           
        }
  </div><!--hengfu/-->
  <div class="floor" id="floor1">
   <h3 class="floorTitle">
   1F&nbsp;&nbsp;&nbsp;&nbsp;杯子系列
   <a href="#" class="more">更多 &gt;</a>
   </h3>
   <div class="floorBox">
    <div class="floorLeft">
     <ul class="flList">
           @foreach (var item in prolist)
        {
                    if (@item.Id<1002) {
                        <li>@item.Name</li>
                    }
                }
      <li><a href="proinfo.html">更多&gt;&gt;</a></li>
     
     </ul><!--flList/-->
     <div class="flImg">
         @foreach (var item in prourllist)
        {
            if(@item.Id==16){
                 <img src="@item.PicUrl" width="198" height="290" />
            }
           
        }
         
         </div>
    </div><!--floorLeft/-->
    <div class="floorRight">
    <div class="frProList">
          @foreach (var item in prourllist)
        { 
            if(@item.ProductId==2){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==3){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     </div><!--frProList-->
     <div class="frProList">
         @foreach (var item in prourllist)
        { 
            if(@item.ProductId==4){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==5){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     </div><!--frProList-->
     <div class="frProList">
        @foreach (var item in prourllist)
        { 
            if(@item.ProductId==6){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     
     </div><!--frProList-->
        <div class="frProList">
        @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1002){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp;</dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     
     </div><!--frProList-->
    </div><!--floorRight/-->
    @*第一个结束*@
    <div class="clears"></div>
   </div><!--floorBox/-->
  </div><!--floor/-->
  <div class="hengfu">
    @foreach (var item in prourllist)
        {
            if(@item.Id==56){
                 <img src="@item.PicUrl" width="978"  height="97" />
            }
           
        }
  </div><!--hengfu/-->
  <div class="floor" id="floor3">
   <h3 class="floorTitle">
   2F&nbsp;&nbsp;&nbsp;&nbsp;餐具系列
   <a href="#" class="more">更多 &gt;</a>
   </h3>
   <div class="floorBox">
    <div class="floorLeft">
     <ul class="flList">
          @foreach (var item in prolist)
        {
                    if (@item.Id>1002&&@item.Id<1009) {
                        <li>@item.Name</li>
                    }
                }
      <li><a href="proinfo.html">更多&gt;&gt;</a></li>
      
     </ul><!--flList/-->
     <div class="flImg">  @foreach (var item in prourllist)
        {
            if(@item.Id==15){
                 <img src="@item.PicUrl" width="198" height="290" />
            }
           
        }</div>
    </div><!--floorLeft/-->
        
       <div class="floorRight">
         
    <div class="frProList">
          @foreach (var item in prourllist)
        {  if(@item.ProductId==1003){
          
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp;</dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
        }
        }
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1005){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     </div><!--frProList-->
     <div class="frProList">
         @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1006){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1007){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp;</dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     </div><!--frProList-->
     <div class="frProList">
        @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1008){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     
     </div><!--frProList-->
     </div>
     </div><!--frProList-->
    </div><!--floorRight/-->
    <div class="clears"></div>
   <!--floorBox/-->
 <!--floor/-->
  <div class="hengfu">
       @foreach (var item in prourllist)
        {
            if(@item.Id==55){
                 <img src="@item.PicUrl" width="978"  height="97" />
            }
           
        }
   
  </div><!--hengfu/-->
  <div class="floor" id="floor2">
   <h3 class="floorTitle">
   3F&nbsp;&nbsp;&nbsp;&nbsp;纸浆模塑系列
   <a href="proinfo.html" class="more">更多 &gt;</a>
   </h3>
   <div class="floorBox">
    <div class="floorLeft">
     <ul class="flList">
       @foreach (var item in prolist)
        {
                    if (@item.Id>1008&&@item.Id<1014) {
                        <li>@item.Name</li>
                    }
                }
      <li><a href="proinfo.html">更多&gt;&gt;</a></li>
    
     </ul><!--flList/-->
     <div class="flImg"><div class="flImg">  @foreach (var item in prourllist)
        {
            if(@item.Id==15){
                 <img src="@item.PicUrl" width="198" height="290" />
            }
           
        }</div></div>
    </div><!--floorLeft/-->
     <div class="floorRight">
         
    <div class="frProList">
          @foreach (var item in prourllist)
        {  if(@item.ProductId==1009){
          
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
        }
        }
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1010){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     </div><!--frProList-->
     <div class="frProList">
         @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1011){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp;</dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
    
     
     </div><!--frProList-->
     <div class="frProList">
       @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1012){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp;</dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     </div><!--frProList-->
     <div class="frProList">
        @foreach (var item in prourllist)
        { 
            if(@item.ProductId==1008){
        <dl>
      <dt><a href="/proinfo/index/@item.Id">
            <img src="@item.PicUrl" width="132" height="129" />
            </a></dt>
      <dd>@item.Product.Name &nbsp; </dd>
      <dd class="cheng">￥@item.Product.Price/袋</dd>
     </dl>
    }
        }
     
     </div><!--frProList-->
     </div>
     </div><!--frProList-->
    </div><!--floorRight/-->
      <div class="clears"></div>
   
